home *** CD-ROM | disk | FTP | other *** search
- class disney.rabbitRivalry.ui.Splash extends disney.rabbitRivalry.ui.Screen
- {
- var __hasPlayedOnce;
- var __isClosed;
- var __isOpening;
- var __mc;
- var screen;
- var __HAS_INTRO = true;
- var __HAS_OUTRO = true;
- var __OPENED_FRAME = 120;
- function Splash(mc, ui, hasIntroPlayed)
- {
- super(mc,ui);
- this.__hasPlayedOnce = hasIntroPlayed;
- }
- function open()
- {
- this.__isClosed = false;
- this.__isOpening = true;
- if(this.__hasPlayedOnce)
- {
- this.__mc.gotoAndPlay("fastIntro");
- }
- else
- {
- this.__mc.gotoAndPlay(this.__INTRO_FRAME);
- }
- this.__hasPlayedOnce = true;
- }
- function onOpened()
- {
- super.onOpened();
- this.makeButton(this.__mc.btn_play);
- this.__mc.btn_play.onRelease = function()
- {
- this.screen.closeThenCallback("engine","startGame");
- };
- this.__mc.btn_help.onRelease = function()
- {
- smashing.keithm.Messenger.sendMessage("engine","showHelp");
- };
- }
- }
-